package com.lanyou.esb.cook.proxy.service;

import com.lanyou.esb.cook.proxy.entity.IfAccTimes;
import com.lanyou.esb.cook.proxy.service.push.Push;

/**
 * 接口访问次数接口
 * 
 * @author Davey.wu
 */
public interface IfAccTimesService {
	/**
	 * 保存接口访问次数到REDIS
	 * 
	 * @param ifAccTimes
	 *            ：接口访问次数
	 */
	void pushToRedis(IfAccTimes ifAccTimes);

	/**
	 * 获取需要推送的数据
	 * 
	 * @return
	 */
	Push<IfAccTimes> getPush();

}
